<%@page import="java.util.Date"%>
<%@page import="com.xenstra.rhodiumone.vo.EquityVO"%>
<%@page import="java.util.List"%>
<%@page import="com.xenstra.rhodiumone.web.RhodiumOneWebService"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<%
	RhodiumOneWebService ws = new RhodiumOneWebService();
	List<EquityVO> equities = ws.getAllEquities();
	out.println(equities.get(0).getSymbol() + "<br/>");
	
	out.println(ws.getAllExpiryDates().get(0) + "<br/>");
	
	out.println(ws.getOptionsStrikePrices("SBIN", "CE", new Date(114,0,30)).get(0) + "<br/>");
	
	//out.println(ws.getOptionsData("SBIN", "PE", new Date(113,1,28), 1500).get(0).getClose() + "<br/>");
	
	out.println(ws.getFuturesData("SBIN", new Date(113,1,28)).get(0).getClose() + "<br/>");
	
	out.println(ws.executeAdHocEquityQuery("SELECT * FROM MAIN_EQUITY WHERE SYMBOL='CROMPGREAV' AND TIMESTAMP='2014-04-10'").get(0).getClose() + "<br/>");
%>
</body>
</html>